﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IShoppingBll
{
    public interface IBaseBll<T>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool Add(T entity);





        /// <summary>
        /// 真删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        bool Delete(string Id);

        /// <summary>
        /// 通过ID获取信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        T GetEntity(string id);

        /// <summary>
        /// 修改实体数据
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool UpdateEntity(T entity);
    }
}
